<template>
  <div class="question-bank-container">
    <div class="header">
      <h1><i class="fas fa-book-open"></i> 面试题题库</h1>
      <p class="subtitle">全面提升您的面试准备水平</p>
    </div>

    <div class="options-container">
      <!-- 行测常见题型 -->
      <router-link to="/xingce" class="option-card">
        <div class="option-content">
          <div class="option-icon">
            <i class="fas fa-clipboard-list"></i>
          </div>
          <h3>行测常见题型+企业真题</h3>
          <p>包含各类企业笔试常见题型和真题练习</p>
        </div>
      </router-link>

      <!-- 专业技术题库 -->
      <router-link to="/zhuanye" class="option-card">
        <div class="option-content">
          <div class="option-icon">
            <i class="fas fa-laptop-code"></i>
          </div>
          <h3>专业技术题库+训练</h3>
          <p>按职位分类的专业技术题目和实战训练</p>
        </div>
      </router-link>

      <!-- 职业评测 -->
      <router-link to="/zhiye" class="option-card">
        <div class="option-content">
          <div class="option-icon">
            <i class="fas fa-chart-line"></i>
          </div>
          <h3>职业评测-形成测评报告</h3>
          <p>全面评估您的职业能力并生成详细报告</p>
        </div>
      </router-link>
    </div>
  </div>
</template>

<script>
export default {
  name: 'QuestionBankHome',
  mounted() {
    // 设置页面标题
    document.title = '面试题题库 - 首页'
  }
}
</script>

<style scoped>
/* 保持原有的样式不变 */
.question-bank-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
}

.header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.header .subtitle {
  font-size: 1.2rem;
  color: #7f8c8d;
}

.options-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.option-card {
  display: block;
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e0e0e0;
}

.option-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  border-color: #3498db;
}

.option-content {
  text-align: center;
}

.option-icon {
  font-size: 3rem;
  color: #3498db;
  margin-bottom: 1.5rem;
}

.option-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.option-content p {
  color: #7f8c8d;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .options-container {
    grid-template-columns: 1fr;
  }
  
  .header h1 {
    font-size: 2rem;
  }
}
</style>
